import httpInstance from "@/utils/http"
import qs from 'qs'

/**
 * 下载文件 icon 图标
 * @param filePath 文件路径
 * @returns {*}
 */
export function previewIcon(filePath) {
    return httpInstance({
        method: "post",
        url: "/preview/icon",
        data: {filePath:filePath},
        responseType: "blob"
    })
}

/**
 * 测试服务是否正常接口
 * @returns {*}
 */
export function test() {
    return httpInstance({
        method: "get",
        url: "/preview/test"
    })
}